﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using System.Web;

namespace Snipr.Framework.Session
{
    public class SessionState
    {
        public static SessionState Current
        {
            get
            {
                return HttpContext.Current.Session["app"] as SessionState;
            }
            set
            {
                HttpContext.Current.Session["app"] = value;
                HttpContext.Current.Session.Timeout = 720;
            }
        }

        public static void EndCurrentSession()
        {
            HttpContext.Current.Session.Abandon();
        }
    }
}
